import PropertyIdDefine from "./PropertyIdDefine";

export default class PropertySet{
    //{属性id：属性值}
    values:Map<number,number> = new Map();

    public changeProperty(id:number,value:number):void{
        if(value==0){
            return
        }
        if(id<PropertyIdDefine.minId||id>PropertyIdDefine.maxId){
            return
        }
        let pV = this.values.get(id)
        if(pV){
            pV += value;
        }
        this.values.set(id,value)
    }
}